var createIndex = function () {
    this.in_v =null;
}

createIndex.prototype.Init = function(){
    var that = this;
    var in_v = new Vue({
        el:"#cr_indx",
        data: {
            syContent:null,
            jd_currentPage:1,
            jd_limit: 10,
            tableHeight:600,
            jdIndexAll:null,
            jd_total:0
        },
        methods:{
            search_keyup: function () {
                that.ajaxGetSy(this.syContent);
            },search_jd:function () {
                that.ajaxGetSy(that.syContent);
            },Change_jdSize:function () {
                
            },Change_jdpage:function () {
                
            }
        }
    })
    that.in_v = in_v;
}

createIndex.prototype.ajaxGetSy = function(){
    var that = this;
    $.ajax({
        type:"get",
        url:"/consumer/getIndex",
        data:"",
        success:function(res){
            if(res !=null){
                that.in_v._data.jdIndexAll=res;
                that.in_v._data.jd_total=res.length;
            }
        }
    })

}

createIndex.prototype.InitIndex = function(){
    var that = this;


}